<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="format-detection" content="telephone=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="../css/main.css"/>
		<title></title>
	</head>
	<body class="gray-bg">
		<form class="myform">
			<div class="hot-search row">
				<a href="javascript:history.go(-1);"><img src="../images/back.png"/></a>
				<div class="search row">
					<div class="choose">
						<a href="#" class="currentch">新房</a>
						<ul>
							<li><a href="#" class="on">新房</a></li>
							<li><a href="#">二手房</a></li>
							<li><a href="#">租房</a></li>
						</ul>
					</div>
					<input type="text" placeholder="请输入关键词" />
					<a href="#" class="row"><img src="../images/gray-search.png"/></a>
				</div>
			</div>
			<div class="history">
				<p>搜索历史</p>
				<ul>
					<li><a href="#">万科经典款</a></li>
					<li><a href="#">大华锦绣海岸</a></li>
					<li><a href="#">融创时间</a></li>
					<li><a href="#">万科经典款</a></li>
					<li><a href="#">大华锦绣海岸</a></li>
					<li><a href="#">融创时间</a></li>
					<li><a href="#">万科经典款</a></li>
					<li><a href="#">大华锦绣海岸</a></li>
					<li><a href="#">融创时间</a></li>
				</ul>
				<a href="#" class="row">清除搜索历史</a>
			</div>
		</form>
		
		
		<script src="../js/jquery.min.js"></script>
		<script src="../js/wap.js"></script>
		<script type="text/javascript">
			//点击选择类型
			$('.choose a.currentch').click(function(){
				if($(this).hasClass('on')){
					$(this).removeClass('on');
					$('.choose ul').slideUp();
				} else {
					$(this).addClass('on');
					$('.choose ul').slideDown();
				}
			});
			$('.choose ul li a').click(function(){
				$('.choose ul li a').removeClass('on');
				$(this).addClass('on');
				$('.choose a.currentch').html($(this).html())
				$('.choose a.currentch').removeClass('on');
				$('.choose ul').slideUp();
			});
		</script>
	</body>
</html>
